import type { App } from 'vue'
// icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import SvgIcon from '@/components/SvgIcon/index.vue'
import BasicTable from '@/components/BasicTable/index.vue'

const components:any = {
  SvgIcon,
  BasicTable
}
export default {

  install: (app: App) => {
    console.log('ElementPlusIconsVue:', ElementPlusIconsVue)
    // icon 全局注册
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      // console.log('组件：', key, component)
      app.component(key, component)
    }


    Object.keys(components).forEach(key => {
      app.component(key, components[key])
    })
  }
}
